# -*- coding: utf-8 -*-
from dwjjCoreServerScripts.common import consts, logger

from mod.common.mod import Mod
import mod.server.extraServerApi as serverApi


@Mod.Binding(name=consts.ServerModName, version=consts.ModVersion)
class Main(object):
    def __init__(self):
        logger.Suc("==== mod [" + consts.ServerModName + "] enable ====")

    @Mod.InitServer()
    def ServerInit(self):
        serverApi.RegisterSystem(consts.ServerModName, consts.ServerSystemName, consts.ServerSystemPath)

    @Mod.DestroyServer()
    def ServerDestroy(self):
        pass
